package com.xincheng.shuimalong.util;

import android.content.Context;

import com.umeng.socialize.Config;
import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareAPI;
import com.umeng.socialize.UmengTool;
import com.xincheng.shuimalong.common.AppConfig;

/**
 * Created by 许浩 on 2017/7/25.
 */

public class UmengUtil {
    private static final String wx_key = "wx2100142694ef38de";
    private static final String wx_secret = "091e2fdfe09319ff30ad590a61b0322c";
    private static final String qq_key = "fCSsF6fwxByI8aR5";
    private static final String qq_secret = "1106229273";
//    private static final String sina_key = "";
//    private static final String sina_screet = "";
//    private static final String redirectUrl = "";

    public static void init(Context context) {
        PlatformConfig.setWeixin(wx_key, wx_secret);
        PlatformConfig.setQQZone(qq_key, qq_secret);
//        PlatformConfig.setSinaWeibo(sina_key, sina_screet, redirectUrl);
        Config.DEBUG = AppConfig.IS_DEBUG;
        UMShareAPI.get(context);
    }
}
